package com.hyt.it.ogt.opertaion.track.rpc;

import com.hyt.common.apiInfor.ApiResponse;
import com.hyt.core.exception.NestedBusinessException;
import com.hyt.it.ogt.opertaion.track.model.KsWarningLogVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  考务接口
 * </p>
 *
 * @author 朱振宇
 * @since 2022-11-23
 */
@Slf4j
@Component
public class KwOperationTrackClientHystrix implements KwOperationTrackClient {

    public ApiResponse<Boolean> saveWarning(List<KsWarningLogVO> ksWarningLogVOList) {
        log.error("#保存预警记录失败，进入熔断");
        throw new NestedBusinessException("保存预警记录失败");
    }
}
